﻿@model Wypozyczalnia.Models.Zamowienia

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Czy napewno chcesz zrealizowac zamowienie?</h3>

    @if(Model.uwagi != string.Empty) {<script type="text/javascript"> var answer = confirm("To zamowienie zawiera uwagi!"); </script>}
       
      

 <div >
         <p class="label">@Html.DisplayNameFor(model => model.user) </p>
        <p class="repeater">@Html.DisplayFor(model => model.user)</p>
    </div>
 <div >
         <p class="label">@Html.DisplayNameFor(model => model.zamowienie) </p>
        <p class="repeater">@Html.DisplayFor(model => model.zamowienie)</p>
    </div>
 <div >
         <p class="label">@Html.DisplayNameFor(model => model.kwota) </p>
        <p class="repeater">@Html.DisplayFor(model => model.kwota)</p>
    </div>



@using (Html.BeginForm()) {
    
   
    <fieldset>
         <legend>Zamowienia</legend>
     <div class="editor-label">
            @Html.LabelFor(model => model.ilosc_dni)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ilosc_dni)
            @Html.ValidationMessageFor(model => model.ilosc_dni)
        </div>
        </fieldset>
    
    <p>
        <input type="submit" value="Zrealizuj" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
